package com.module.my.adapter.holder.vip

import android.graphics.Paint
import android.view.ViewGroup
import com.module.base.base.adapter.BaseViewHolder
import com.module.my.bean.VipTitleBean
import com.module.my.databinding.MyItemVipTitleBinding

class VipTitleHolder(parent: ViewGroup) :
    BaseViewHolder<VipTitleBean, MyItemVipTitleBinding>(parent) {
    override fun initView() {
        super.initView()
        //设置粗细
        mDatabind.tvName.paint.style = Paint.Style.FILL_AND_STROKE
        mDatabind.tvName.paint.strokeWidth = 0.7f
    }

    override fun convert(bean: VipTitleBean, position: Int) {
        mDatabind.tvName.setText(bean.title)
    }
}